package com.xydtech.ecard.merchant.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Date;

/**
 * 电子名片商户成员对象 ecard_merchant_part_info
 *
 * @author xydtech
 * @date 2023-08-01
 */
public class EcardMerchantPartInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 商户ID */
    //@Excel(name = "商户ID")
    private Long merchantId;

    /** 门头名称 */
    @Excel(name = "门头名称", width = 20)
    private String handName;

    /** 姓名 */
    @Excel(name = "姓名", width = 20)
    private String name;

    /** 手机号 */
    @Excel(name = "手机号", width = 20)
    private String phone;

    /** 身份证号 */
    @Excel(name = "身份证号", width = 20)
    private String idCard;

    /** 职务 */
    @Excel(name = "职务", width = 20)
    private String duties;

    /** 业务需求（多条记录逗号隔开） */
    @Excel(name = "业务需求", width = 20)
    private String businessDemand;

    /** 性别 */
    @Excel(name = "性别", width = 20)
    private String sex;

    /** 是否联系人 是-T否-F */
    @Excel(name = "是否联系人", width = 20)
    private String isContacts;

    /**
     * 成员标签
     */
    @Excel(name = "成员标签", width = 20)
    private String memberLabel;

    /** 创建人ID */
    //@Excel(name = "创建人ID")
    private Long creatorId;

    /** 营销经理 */
    @Excel(name = "营销经理", width = 20)
    private String userName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, format = "yyyy-MM-dd")
    private Date creationTime;

    /**
     * 商户类型：1-个人，2-商户，3-企业，4-新型农业主体
     */
    private String merchantType;

    /** 关系 */
    @Excel(name = "关系", width = 20)
    private String relationship;

    /** 学习或工作情况 */
    @Excel(name = "学习或工作情况", width = 20)
    private String learnWorkSituation;

    /** 字典机构查询条件 */
    private Long dictDeptId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMerchantId(Long merchantId)
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId()
    {
        return merchantId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setIdCard(String idCard)
    {
        this.idCard = idCard;
    }

    public String getIdCard()
    {
        return idCard;
    }
    public void setDuties(String duties)
    {
        this.duties = duties;
    }

    public String getDuties()
    {
        return duties;
    }
    public void setBusinessDemand(String businessDemand)
    {
        this.businessDemand = businessDemand;
    }

    public String getBusinessDemand()
    {
        return businessDemand;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setIsContacts(String isContacts)
    {
        this.isContacts = isContacts;
    }

    public String getIsContacts()
    {
        return isContacts;
    }
    public void setCreatorId(Long creatorId)
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId()
    {
        return creatorId;
    }
    public void setCreationTime(Date creationTime)
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime()
    {
        return creationTime;
    }

    public String getHandName() {
        return handName;
    }

    public void setHandName(String handName) {
        this.handName = handName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMemberLabel() {
        return memberLabel;
    }

    public void setMemberLabel(String memberLabel) {
        this.memberLabel = memberLabel;
    }

    public String getMerchantType() {
        return merchantType;
    }

    public void setMerchantType(String merchantType) {
        this.merchantType = merchantType;
    }

    public String getRelationship() {
        return relationship;
    }

    public void setRelationship(String relationship) {
        this.relationship = relationship;
    }

    public String getLearnWorkSituation() {
        return learnWorkSituation;
    }

    public void setLearnWorkSituation(String learnWorkSituation) {
        this.learnWorkSituation = learnWorkSituation;
    }

    public Long getDictDeptId() {
        return dictDeptId;
    }

    public void setDictDeptId(Long dictDeptId) {
        this.dictDeptId = dictDeptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("id", id)
                .append("merchantId", merchantId)
                .append("name", name)
                .append("phone", phone)
                .append("idCard", idCard)
                .append("duties", duties)
                .append("businessDemand", businessDemand)
                .append("sex", sex)
                .append("isContacts", isContacts)
                .append("memberLabel", memberLabel)
                .append("creatorId", creatorId)
                .append("creationTime", creationTime)
                .append("handName", handName)
                .append("userName", userName)
                .append("merchantType", merchantType)
                .append("relationship", relationship)
                .append("dictDeptId", dictDeptId)
                .append("learnWorkSituation", learnWorkSituation)
                .toString();
    }
}
